module.exports = function(e) {
    var that = this;
    var t = getCurrentPages();
    if (t.length) {
        var o = t[t.length - 1];
        if (o && "pages/login/login" != o.route) if ("undefined" != typeof my) {
            var g = wx.getStorageSync("last_page_options"), n = {
                route: t[t.length - 1].route,
                options: g || {}
            };
            wx.setStorageSync("login_pre_page", n);
        } else wx.setStorageSync("login_pre_page", o);
    }
    // 获取当前路径

  var pages = getCurrentPages();
  var url = pages[pages.length - 1].route;
  if (url != "pages/cart/cart" 
  && url != 'pages/user/user' 
  && url != 'pages/cat/cat' 
  && url != 'pages/index/index' 
  && url != 'pages/posts/index'
  && url != 'pages/add-share/index'
  && url != 'pages/card/card'
  && url != 'pages/integral-mall/order/order'
  && url != 'pages/coupon/coupon'
  && url != 'pages/list/list'
  && url != 'pages/integral-mall/index/index'
  && url != 'pages/integral-mall/goods-info/index'
  && url != 'pages/integral-mall/register/index'
  // && url != 'pages/fxhb/open/open'
  && url != 'miaosha/miaosha'){
    // wx.redirectTo({
    //   url: "/pages/login/login"
    // });
    pages[pages.length - 1].setData({
      user_info_show: !0,
    });
    wx.hideLoading();
  }
};